<?php

$id = 6;
$a = Model('contract.Contract')->where('id',$id)->find();
dump($a);
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title>审批</title>
    <link href="/static/layui/css/layui.css" media="all" rel="stylesheet">
</head>
<body>
<div class="layui-form-item" style="width:500px;">
    <form class="layui-form ">
        <div class="layui-form-item">
            <label class="layui-form-label">合同ID</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled field-id" disabled name="id" readonly
                       type="text">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">合同名称</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input  layui-disabled field-name" disabled name="name" readonly
                       type="text">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">选择客户</label>
            <div class="layui-input-block field-client_id">
                <select lay-filter="" name="interest">
                    <option value=""></option>
                    <option value="0">写作</option>
                    <option selected="" value="1">阅读</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">选择商机</label>
            <div class="layui-input-block">
                <select lay-filter="" name="interest">
                    <option value=""></option>
                    <option value="0">写作</option>
                    <option selected="" value="1">阅读</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">合同金额</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled field-money" disabled name="money" readonly
                       type="text" value="1111">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">下单时间</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled" disabled name="id" readonly type="text"
                       value="2022-12-11">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">合同开始时间</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled" disabled name="id" readonly type="text"
                       value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">合同结束时间</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled" disabled name="id" readonly type="text"
                       value="1111">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">客户签约人</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled" disabled name="id" readonly type="text"
                       value="1111">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">公司签约人</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled" disabled name="id" readonly type="text"
                       value="1111">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">支付方式</label>
            <div class="layui-input-block">
                <select lay-filter="" name="interest">
                    <option value=""></option>
                    <option value="0">微信</option>
                    <option selected="" value="1">支付宝</option>
                    <option value="0">银联支付</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item" style="margin-left: 80px;">
            <button class="layui-btn" lay-filter="demo1" lay-submit="*">审核通过</button>
            <button class="layui-btn" lay-filter="demo2" lay-submit="">不通过</button>
            <button class="layui-btn layui-btn-primary" type="reset">重置</button>
        </div>
    </form>
</div>
<script src="/static/layui/layui.js"></script>
<script>
    layui.config({
        base: '/static/layui/modules/' //假设这是你存放拓展模块的根目录
    });
    layui.use(['jquery', 'layer', 'form', 'func'], function () {
        var $ = layui.jquery
            , layer = layui.layer
            , form = layui.form
        layui.func.assign(<?=json_encode($a)?>);

    })
</script>
</body>
</html>